import request from '@/utils/request'

//导出请求函数，使用封装好的函数
export function getSection(params) {
  return request({
    url: '/sections',
    method: 'get',
    params
  })
}

export function getZones(sectionid, params) {
  console.log("this is api getZones");
  console.log(sectionid);
  console.log(`/sections/${sectionid}/zones`);
  return request({
    url: `/sections/${sectionid}/zones`,
    method: 'get',
    params
  })
}
